package nc.bank.ght.degrade;

import java.util.List;

public abstract class SQLStatement {
	
	protected String sql;

	protected String tableName;
	
	protected boolean error=false;

	protected abstract String getAction();

	protected abstract String getOperator();
	
	protected abstract void parse(String sql) throws Exception;
	
	protected abstract String generateSQL();
	
	protected abstract List getFields();
	
	public String getTableName(){
		return tableName;
	}
	
	
	public String getSql() {
		return sql;
	}

	public void setSql(String sql) {
		this.sql = sql;
	}
	
	public boolean isError() {
		return error;
	}

	public void setError(boolean error) {
		this.error = error;
	}
	

	
}
